Lead-gen Group 4: first-party docs-behavior beacon (capture only) - #402
Conversation
✅ Deploy Preview for docs-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
New signed-in-only pageview beacon. For users with the rp_docs_auth hint cookie, reports one pageview per navigation (path, Antora component, and the search term on /search) to the docs-site /docs-activity endpoint, which records it server-side against the account. Replaces anonymous third-party analytics (Plausible/Heap/Algolia) for lead purposes. Anonymous visitors send nothing. Same-origin (session cookie rides along). Deduped once-per-path-per-tab-session to keep write volume to real navigations. Fire-and-forget; never blocks or throws into the page. Capture only — the endpoint stores to our own user store; nothing is delivered to sales. Co-Authored-By: Claude Opus 4.8 <[email protected]>
00203c5 to
d4cd9d8
Compare

Draft / WIP — capture only. The docs-ui half of Group 4 in the lead-gen plan. Pairs with the docs-site
/docs-activityendpoint (docs-site PR #192).Adds
src/js/27-docs-activity.js: a signed-in-only pageview beacon. For users with therp_docs_authhint cookie, it reports one pageview per navigation (path, Antoradata-component, and theqterm on/search) to the same-origin/docs-activityendpoint, which records it server-side against the user's account.Capture only; nothing is delivered to sales (held pending legal confirm). Lint passes. Needs the docs-site endpoint deployed to do anything, and ships in the UI bundle like other JS.
🤖 Generated with Claude Code